<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>jquery基础</title>
    <style>
    </style>
    <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js">
    </script> </head>

<body>
    <script>

        // 文档加载完成写法二
        $(function () {
            // 开始写 jQuery 代码...
            $("button").click(function () {
                // 加载ajax_load_test.txt到div中，覆盖
                $("div").load("ajax_load_test.txt");
            });
        });

        $("button").click(function () {
            $.ajaxSetup({
                url: "demo_ajax_load.txt",
                success: function (result) {
                    $("div").html(result);
                }
            });
            $.ajax();
        });

    </script>
    <div style="border: 1px solid green"> </div>
    <button>load</button>
</body>

</html>